import Request from '@/axios/request'

export function getGames(params) {
  return Request.get('games', { params })
}

export function createGame() {
  return Request.get('games/create')
}

export function storeGame(data) {
  return Request.post('games', data)
}

export function updateGame(id, data) {
  return Request.put(`games/${id}`, data)
}

export function editGame(id) {
  return Request.get(`games/${id}/edit`)
}

export function destroyGame(id) {
  return Request.delete(`games/${id}`)
}
